fix: destructure AttachSession tuple for buffer rendering - #53
Conversation
AttachSession returns a tuple [Session, buffer], not an object. The previous fix accessed result.buffer which is undefined on a tuple. Destructure as [, buffer] to get the second element.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
AttachSessionreturns a Wails v3 tuple[Session, buffer], not an objectresult.bufferwasundefinedon a tuple; destructure as[, buffer]to get the second elementhandleStreamandAttachSessionthat could orphan the initial prompt dataTest plan
Summary by CodeRabbit
Release Notes
No user-visible changes. This release contains internal code optimizations to improve maintainability. Terminal functionality remains unchanged.